package com.mobit.managers;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

public class DataSimulation {

	public DataSimulation() {

	}

	public static JSONObject getCategories() throws JSONException {
		JSONObject jo_cats = new JSONObject();
		JSONArray ja_cats = new JSONArray();

		JSONObject jo_1 = new JSONObject();
		jo_1.put("cat_id", "1");
		jo_1.put("cat_name", "Burgers");

		JSONObject jo_2 = new JSONObject();
		jo_2.put("cat_id", "2");
		jo_2.put("cat_name", "Cake");

		JSONObject jo_3 = new JSONObject();
		jo_3.put("cat_id", "3");
		jo_3.put("cat_name", "Chicken");

		JSONObject jo_4 = new JSONObject();
		jo_4.put("cat_id", "4");
		jo_4.put("cat_name", "Chinese");

		JSONObject jo_5 = new JSONObject();
		jo_5.put("cat_id", "5");
		jo_5.put("cat_name", "Ethiopian");

		ja_cats.put(jo_1);
		ja_cats.put(jo_2);
		ja_cats.put(jo_3);
		ja_cats.put(jo_4);
		ja_cats.put(jo_5);

		jo_cats.put("categories", ja_cats);

		return jo_cats;
	}

	public static JSONObject getRestaurants() throws JSONException {
		JSONObject jo_rests = new JSONObject();
		JSONArray ja_rests = new JSONArray();

		JSONObject jo_1 = new JSONObject();
		JSONObject jo_2 = new JSONObject();
		JSONObject jo_3 = new JSONObject();
		JSONObject jo_4 = new JSONObject();
		JSONObject jo_5 = new JSONObject();
		JSONObject jo_6 = new JSONObject();
		JSONObject jo_7 = new JSONObject();

		jo_1.put("rest_id", "1");
		jo_1.put("rest_name", "Debonairs Pizza");
		jo_1.put("slogan", "Gotta be the pizza");
		jo_1.put("location", "Westlands");
		jo_1.put("logo", "file:///mnt/sdcard/takeout/pizza1.jpg");
		jo_1.put("coordinates", "0.0,0.0");

		jo_2.put("rest_id", "2");
		jo_2.put("rest_name", "Pizza Inn");
		jo_2.put("slogan", "Gotta be the pizza");
		jo_2.put("location", "Westlands");
		jo_2.put("logo", "file:///mnt/sdcard/takeout/pizza2.jpg");
		jo_2.put("coordinates", "0.0,0.0");

		jo_3.put("rest_id", "3");
		jo_3.put("rest_name", "Naked Pizza");
		jo_3.put("slogan", "Gotta be the pizza");
		jo_3.put("location", "Westlands");
		jo_3.put("logo", "file:///mnt/sdcard/takeout/pizza3.jpg");
		jo_3.put("coordinates", "0.0,0.0");

		jo_4.put("rest_id", "4");
		jo_4.put("rest_name", "Pizza Planet");
		jo_4.put("slogan", "Gotta be the pizza");
		jo_4.put("location", "Westlands");
		jo_4.put("logo", "file:///mnt/sdcard/takeout/pizza4.jpg");
		jo_4.put("coordinates", "0.0,0.0");

		jo_5.put("rest_id", "5");
		jo_5.put("rest_name", "Domino's");
		jo_5.put("slogan", "Gotta be the pizza");
		jo_5.put("location", "Moi Avenue (CBD)");
		jo_5.put("logo", "file:///mnt/sdcard/takeout/pizza5.jpg");
		jo_5.put("coordinates", "0.0,0.0");

		jo_6.put("rest_id", "6");
		jo_6.put("rest_name", "Pizza Inn");
		jo_6.put("slogan", "Gotta be the pizza");
		jo_6.put("location", "Muindi Bingu (CBD)");
		jo_6.put("logo", "file:///mnt/sdcard/takeout/pizza6.jpg");
		jo_6.put("coordinates", "0.0,0.0");

		jo_7.put("rest_id", "7");
		jo_7.put("rest_name", "Pizza Planet");
		jo_7.put("slogan", "Gotta be the pizza");
		jo_7.put("location", "Moi Avenue (CBD)");
		jo_7.put("logo", "file:///mnt/sdcard/takeout/pizza7.jpg");
		jo_7.put("coordinates", "0.0,0.0");

		ja_rests.put(jo_1);
		ja_rests.put(jo_2);
		ja_rests.put(jo_3);
		ja_rests.put(jo_4);
		ja_rests.put(jo_5);
		ja_rests.put(jo_6);
		ja_rests.put(jo_7);

		jo_rests.put("restaurants", ja_rests);

		return jo_rests;
	}

	public static JSONObject getMenu() throws JSONException {
		JSONObject jo_menus = new JSONObject();

		JSONObject jo_info = new JSONObject();
		JSONArray ja_menus = new JSONArray();

		jo_info.put("id", "1");
		jo_info.put("name", "Debonairs Pizza");
		jo_info.put("address", "Oil Libya, Mpaka Road, Westlands");
		jo_info.put("phone", "0714754824");
		jo_info.put("del_time", "Approx Delivery time: 20mins");
		jo_info.put("logo", "file:///mnt/sdcard/takeout/pizza1.jpg");

		jo_menus.put("rest_info", jo_info);

		JSONObject jo_1 = new JSONObject();
		JSONObject jo_2 = new JSONObject();
		JSONObject jo_3 = new JSONObject();
		JSONObject jo_4 = new JSONObject();

		jo_1.put("id", "1");
		jo_1.put("title", "Hawaiian");
		jo_1.put("ingred", "Pineaple, Bacon");
		jo_1.put("price", "s: Ksh 500 m: Ksh 700 l:Ksh900");
		jo_1.put("logo", "file:///mnt/sdcard/takeout/pizza1.jpg");

		jo_2.put("id", "2");
		jo_2.put("title", "Veggie Feast");
		jo_2.put("ingred", "Green peppers, Onion, Chilli, Sweetcorn");
		jo_2.put("price", "s: Ksh 500 m: Ksh 700 l:Ksh900");
		jo_2.put("logo", "file:///mnt/sdcard/takeout/pizza2.jpg");

		jo_3.put("id", "3");
		jo_3.put("title", "Margharita");
		jo_3.put("ingred", "Tomato, Cheese");
		jo_3.put("price", "s: Ksh 500 m: Ksh 700 l:Ksh900");
		jo_3.put("logo", "file:///mnt/sdcard/takeout/pizza3.jpg");

		jo_4.put("id", "4");
		jo_4.put("title", "BBQ Steak");
		jo_4.put("ingred", "Marinated Barbeque Steak");
		jo_4.put("price", "s: Ksh 500 m: Ksh 700 l:Ksh900");
		jo_4.put("logo", "file:///mnt/sdcard/takeout/pizza4.jpg");

		ja_menus.put(jo_1);
		ja_menus.put(jo_2);
		ja_menus.put(jo_3);
		ja_menus.put(jo_4);

		jo_menus.put("menu", ja_menus);
		return jo_menus;
	}
}
